import Vue from 'vue'
import VueRouter from 'vue-router'

import Find from '../views/Find.vue'
import My from '../views/My.vue'
import Firend from '../views/Firend.vue'
import NotFound from '../views/NotFound.vue'


Vue.use(VueRouter)

const router = new VueRouter({
    linkActiveClass:'aa',
    linkExactActiveClass:'bb',
    routes:[
        {
            path:'/',
            redirect:'/find'
        },
        {
            path:'/find',
            component:Find
        },
        {
            path:'/my',
            component:My
        },
        {
            path:'/part',
            component:Firend
        },
        {
            path:'/part/:username',
            component:Firend
        },
        {
            path:'*',
            component:NotFound
        }
    ],
})

export default router